<template>
    <div class="app-header">
      <span class="heard-left fa fa-3x fa-angle-left" @click="goBack"></span>
      <span class="app-header-title"><slot></slot></span>
      <span></span>
    </div>
</template>

<script>
export default {
  name: "app-header",
  data() {
    return {};
  },
  methods:{
    goBack(){
      this.$router.go(-1);
    }
  }
}
</script>

<style lang="scss" scoped>

  .app-header{
    line-height: 70px;
    font-size: 0;
    color: #444;
    background: white;
    border-bottom:1px solid #ccc;
    text-align: center;
  }
  .heard-left{
    font-size: 50px;
    display: inline-block;
    box-sizing: border-box;
    position: absolute;
    top: 20px;
    left: 20px;
  }
  .app-header-title{
    width: 50%;
    font-size: 28px;
    text-align: center;
  }
</style>
